package com.express.ExpInsuranceWallet.bean;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity
@Table(name = "exp_insurance_wallet")
public class ExpInsuranceWallet implements BaseEntity {

    private String id;//

    private String companyId;//公司ID

    private BigDecimal money;//钱包余额

    public void setId(String value) { this.id = value; }
    public void setCompanyId(String companyId) { this.companyId = companyId; }
    public void setMoney(BigDecimal money) {  this.money = money; }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 32)
    public String getId() {
        return this.id;
    }
    @Column(name = "company_id", unique = false, nullable = true, insertable = true, updatable = true, length = 32)
    public String getCompanyId() {  return companyId; }
    @Column(name = "money", unique = false, nullable = true, insertable = true, updatable = true, length = 12)
    public BigDecimal getMoney() {  return money; }

}